|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Dialog
public abstract class Dialog
The Dialog class is the base class for the family of VXML
elements that collect data from the caller, allow the caller to select from a
set of menu options, or manipulate the flow of the call during processing.
Certain VXML compliant platforms allow the use of proprietary properties to
be applied to the dialogs of a VXML document. These properties are written to
the VXML document in the order they are added to the Dialog
instance.
During processing of a dialog's constituent elements, events and error can be
generated. EventHandlers can be added to the dialog instance
that will handle events and errors not dealt with by the child's event
handlers. The handlers will be written to the VXML document in the order they
were added.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
Dialog(java.lang.String id)
Creates a new instance of Dialog with the specified id and a
grammar scope of Dialog.SCOPE_DIALOG. |
protected |
Dialog(java.lang.String id,
java.lang.String scope)
Creates a new instance of Dialog with the specified id and
the grammar scope of scope. |
| Method Summary | |
|---|---|
void |
addEventHandler(EventHandler eventHandler)
Adds an EventHandler to this dialog instance. |
void |
clearProperty(java.lang.String propertyName)
Clears the value of a property in this dialog. |
java.lang.String |
getID()
Returns the identifier for this dialog instance. |
java.lang.String[] |
getPropertyNames()
Returns the names of the properties of this dialog. |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
Returns the value of the specified property or null if no
such property exists. |
java.lang.String |
getScope()
Returns the grammar scope of this dialog's grammars. |
void |
removeEventHandler(EventHandler eventHandler)
Removes an event handler from this dialog instance. |
void |
setID(java.lang.String id)
Sets the identifier of this dialog instance. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Sets the value of a property in this dialog. |
void |
setScope(java.lang.String scope)
Sets the grammar scope of this dialog instance. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this dialog to the supplied set. |
protected void |
writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
Write the event handlers of this dialog to the specified content handler. |
protected void |
writeProperties(org.xml.sax.ContentHandler outputHandler)
Writes the properties of this dialog to the specified content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Dialog(java.lang.String id)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Dialog with the specified id and a
grammar scope of Dialog.SCOPE_DIALOG. Throws an IllegalArgumentException if
id argument is null or is an empty string.
id - The identifier of this dialog instance.
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.NullPointerException - If the supplied ID is null.
protected Dialog(java.lang.String id,
java.lang.String scope)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Dialog with the specified id and
the grammar scope of scope. Throws an
IllegalArgumentException if id argument is null or is an
empty string. Throws IllegalArgumentException if scope argument is not
Dialog.SCOPE_DIALOG or Dialog.SCOPE_DOCUMENT.
id - The identifier of this dialog instancescope - The scope of any grammars defined within the dialog.
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.IllegalArgumentException - If the supplied scope is invalid.
java.lang.NullPointerException - If the supplied ID is null.
java.lang.NullPointerException - If the supplied scope is null.| Method Detail |
|---|
public java.lang.String getID()
public java.lang.String getScope()
public java.lang.String[] getPropertyNames()
public java.lang.String getPropertyValue(java.lang.String propertyName)
throws java.lang.NullPointerException
null if no
such property exists.
propertyName - The name of the property to find the value of.
null if no
such property exists.
java.lang.NullPointerException - If the supplied property name is
null.
public void setID(java.lang.String id)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
id - The new identifier of this dialog instance
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.NullPointerException - If the supplied ID is null.
public void setScope(java.lang.String scope)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
scope - The new grammar scope for this dialog instance.
java.lang.IllegalArgumentException - If the supplied scope is invalid.
java.lang.NullPointerException - If the supplied scope is null.
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws java.lang.NullPointerException
propertyName - The name of the property to set.propertyValue - The value to set the property to.
java.lang.NullPointerException - If the supplied property name or value is
null.
public void clearProperty(java.lang.String propertyName)
throws java.lang.NullPointerException
propertyName - The name of the property to clear.
java.lang.NullPointerException - If the supplied property name is
null.
public void addEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to add to this dialog.
java.lang.NullPointerException - If the supplied event handler is
null.
public void removeEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to remove from this dialog.
java.lang.NullPointerException - If the supplied event handler is
null.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeProperties(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The handler to write the properties to.
org.xml.sax.SAXException - If the writing of the properties fails.
java.lang.NullPointerException - If the supplied content handler is
null.
protected void writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||